//
//  UIView+GBAnimation.m
//  GuiJuWo
//
//  Created by chenguibang on 16/4/5.
//  Copyright © 2016年 chenguibang. All rights reserved.
//

#import "UIView+GBAnimation.h"
#import "CAKeyframeAnimation+GBAnimation.h"


@implementation UIView(GBAnimation)

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)shake{
    CAKeyframeAnimation *animation=[CAKeyframeAnimation shakeAnimation:self.layer.frame];
    [self.layer addAnimation:animation forKey:kCATransition];
    
}

@end
